package com.hxy.springcloud.dao;

import com.hxy.springcloud.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DepartmentDao {
    boolean addDepartment(Department department);

    Department queryDepartmentById(long id);

    List<Department> queryAllDepartment();
}
